﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Text.RegularExpressions;

namespace APIIT_BPEL_Server.Action_Layer
{
    /// <summary>
    /// Summary description for front_view_actions
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class Front_View_Actions : System.Web.Services.WebService
    {
        [WebMethod]
        public string login(string wholeInput)
        {
            string[] seperatedInput = Regex.Split(wholeInput, "-=-=-");
            APIIT_BPEL_Server.Business_Layer.BPEL_Process frontView = new APIIT_BPEL_Server.Business_Layer.BPEL_Process();
            return frontView.doRequest(seperatedInput[0], seperatedInput[1], seperatedInput[2], seperatedInput[3], seperatedInput[4]);
        }
    }
}
